| Conditions | 1 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | const OPTIONS = [ 'ean128', 'ignoreBrackets', 'ignoreSpaces' ]; |
||
| 3 | export const normalizeOptions = (options) => { |
||
| 4 | OPTIONS.forEach((option) => { |
||
| 5 | if (option in options) { |
||
| 6 | const value = options[option]; |
||
| 7 | options[option] = value === true || value === 'true'; |
||
| 8 | } |
||
| 9 | }); |
||
| 10 | return options; |
||
| 11 | }; |
||
| 12 | |||
| 22 |